The Extension Load ('load') Resource
The extension load resource, of typegxExtensionLoadType
, tells QuickDraw GX where to load an extension into the printing message chain. You must include a load resource in your extension file. The value that you define in your extension load resource specifies the default loading order for your extension when it is first added to the system. The user can modify the loading order of extensions by using the Extension Setup dialog box for each desktop printer.Figure 6-7 shows the structure of an extension load resource.
Figure 6-7 The extension load resource
The extension load resource consists of a single value.
The extension load resource ID needs to be the constant
- Load priority type. The default location in the message chain where your extension is to be loaded. Constants for the three load priority types are shown inTable 6-10.
gxExtensionLoadID
.
Listing 6-6 shows an example of an extension load resource.Listing 6-6 An example of an extension load resource
resource gxExtensionLoadType (gxExtensionLoadID, sysHeap, purgeable) { gxExtensionLoadLast };This resource tells QuickDraw GX to load the extension last in the message chain, which allows the extension to modify the contents of a page after any other message handlers have performed their modifications. However, the user can change this by using the Extension Setup dialog box for each desktop printer.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help